import React,{ Component } from "react";
import { View,Text,Button } from "react-native";

export default class page2 extends Component {
    static navigationOptions = {
        title:"我的page2",
    };
    render(){
        const { navigation } = this.props;
        return (
            <View>
                <Text>我的page2</Text>
                <Button onPress={()=>{
                    navigation.goBack();
                }} title="GoBack"/>
            </View>
        )
    }
}